package com.xt.LibaryDeskManager.service.impl;

import com.xt.LibaryDeskManager.dao.DepartMentMapper;
import com.xt.LibaryDeskManager.dto.DepartmentDto;
import com.xt.LibaryDeskManager.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 童归权
 * @version 1.0 2021/2/4
 */
@Service
public class DepartMentServiceImpl implements DepartmentService {
    @Autowired
   private DepartMentMapper departMentMapper;

    @Override
    public List<DepartmentDto> getAll(int pid) throws Exception {
        return departMentMapper.getAll(pid);
    }
}
